package config

type ServerConfig struct {
	// 日志配置
	Log LogConfig `mapstructure:"log"`
}

type LogConfig struct {
	// This is destination where frp should write the logs.
	// If "console" is used, logs will be printed to stdout, otherwise,
	// logs will be written to the specified file.
	// By default, this value is "console".
	To string `mapstructure:"to"`
	// Level specifies the minimum log level. Valid values are "trace",
	// "debug", "info", "warn", and "error". By default, this value is "info".
	Level string `mapstructure:"level"`
	// MaxDays specifies the maximum number of days to store log information
	// before deletion.
	MaxDays int64 `mapstructure:"max_days"`
	// DisablePrintColor disables log colors when log.to is "console".
	DisablePrintColor bool `mapstructure:"disable_print_color"`
}
